package com.xzj.admin.boot.mapper;

import com.xzj.admin.base.domain.SysMenuInfo;
import com.xzj.admin.base.domain.SysRoleInfo;
import com.xzj.admin.base.domain.SysUserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @program: xzj-admin
 * @ClassName: SystemMapper
 * @description: 系统功能
 * @author: XiaZunJun
 * @create: 2024-06-24 14:31
 */
@Mapper
public interface SystemMapper {

    SysUserInfo queryByName(String username);

    SysUserInfo queryById(String userId);

    List<SysRoleInfo> queryRolesByUserId(String username);

    List<SysMenuInfo> queryMenuByUserId(String userId);

    List<String> queryPermissions(String userId);
}
